<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 引入 Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<title>添加区域</title>
<style>
/*header的样式*/
.header{
	height:50dp;
	background:#ddd;
	
}
</style>
</head>

<body>
<div class="header">
<h1>某高校后勤管理</h1>
</div>
<div class="container">
<form class="form-horizontal" style="width:700px">
        <div class="form-group">
          <label class="control-label col-sm-2" for="name">区域名称：</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="area_name" value="松林" />
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-2" for="area_principal">负责人名称：</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="area_principal" value="xxx" />
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-2" for="city">区域编号：</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="area_number" value="1001" />
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-2" for="city">区域范围责说明：</label>
          <div class="col-sm-10">
            <textarea type="text" id="area_describe" class="form-control" >xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</textarea>
          </div>
        </div>
        <div class="form-group" style="margin:0 auto;display:block; width:100px">
        <button  class="btn btn-default"  onclick="addArea()" id="ok">保存</button>
        </div>
      </form>
      </div>
</body>
<script>
function addArea()
{
	//获取数据
	//获取修改后的信息
	var area_name=$("#area_name").val();
	var area_principal=$("#area_principal").val();
	var area_number=$("#area_number").val();
	var area_describe=$("#area_describe").val();
	$.post("/ulms_project/area/add",{area_id:area_id,area_name:area_name,area_principal:area_principal,area_number:area_number,area_describe:area_describe},function(data)
	{
		alert("修改成功！！");
	});
}
</script>
</html>